<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close" ng-click="close()">
        <span aria-hidden="true">×</span></button>
    <h4 class="modal-title">{{filter.col}}</h4>
</div>
<div class="modal-body">
    <div class="row" style="margin-bottom: 10px">
        <div class="col-md-4">
            <select class="form-control" ng-model="filter.type" ng-options="t as t for t in type">
            </select>
        </div>
        <div class="col-md-4">
            <div class="input-group">
                <input type="text" class="form-control" ng-model="filter.values[0]">
                <div class="input-group-btn">
                    <button type="button" class="btn dropdown-toggle" data-toggle="dropdown">
                        <span class="fa fa-caret-down"></span></button>
                    <ul class="dropdown-menu">
                        <li ng-click="filter.values[0]='{now(\'M\',-1,\'yyyy-MM-dd\')}'"><a>{{'COMMON.LAST1M'|translate}}</a></li>
                        <li ng-click="filter.values[0]='{now(\'W\',-1,\'yyyy-MM-dd\')}'"><a>{{'COMMON.LAST1W'|translate}}</a></li>
                        <li ng-click="filter.values[0]='{now(\'D\',-10,\'yyyy-MM-dd\')}'"><a>{{'COMMON.LAST10D'|translate}}</a></li>
                        <li ng-click="filter.values[0]='{now(\'D\',-10,\'timestamp\')}'"><a>{{'COMMON.LAST10D_TIMESTAMP'|translate}}</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-4" ng-show="filter.type.length > 1">
            <div class="input-group">
                <input type="text" class="form-control" ng-model="filter.values[1]">
                <div class="input-group-btn">
                    <button type="button" class="btn dropdown-toggle" data-toggle="dropdown">
                        <span class="fa fa-caret-down"></span></button>
                    <ul class="dropdown-menu">
                        <li ng-click="filter.values[1]='{now(\'M\',-1,\'yyyy-MM-dd\')}'"><a>{{'COMMON.LAST1M'|translate}}</a></li>
                        <li ng-click="filter.values[1]='{now(\'W\',-1,\'yyyy-MM-dd\')}'"><a>{{'COMMON.LAST1W'|translate}}</a></li>
                        <li ng-click="filter.values[1]='{now(\'D\',-10,\'yyyy-MM-dd\')}'"><a>{{'COMMON.LAST10D'|translate}}</a></li>
                        <li ng-click="filter.values[1]='{now(\'D\',-10,\'timestamp\')}'"><a>{{'COMMON.LAST10D_TIMESTAMP'|translate}}</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default pull-left" data-dismiss="modal" ng-click="close()">
        {{'COMMON.CANCEL'|translate}}
    </button>
    <button type="button" class="btn btn-primary" ng-click="ok()">{{'COMMON.OK'|translate}}</button>
</div>